home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / CRMSerialDevices.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  2KB  |  83 lines

  1. /*
  2.      File:        CRMSerialDevices.h
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __CRMSERIALDEVICES__
  19. #define __CRMSERIALDEVICES__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. #if PRAGMA_IMPORT_SUPPORTED
  30. #pragma import on
  31. #endif
  32.  
  33. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37.  
  38. enum {
  39.                                                                 /*     for the crmDeviceType field of the CRMRec data structure    */
  40.     crmSerialDevice                = 1,                            /*    version of the CRMSerialRecord below    */
  41.     curCRMSerRecVers            = 1
  42. };
  43.  
  44. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  45. struct CRMIconRecord {
  46.     long                             oldIcon[32];                /* ICN#    */
  47.     long                             oldMask[32];
  48.     Handle                             theSuite;                    /* Handle to an IconSuite    */
  49.     long                             reserved;
  50. };
  51. typedef struct CRMIconRecord CRMIconRecord;
  52.  
  53. typedef CRMIconRecord *CRMIconPtr;
  54. typedef CRMIconPtr *CRMIconHandle;
  55. struct CRMSerialRecord {
  56.     short                             version;
  57.     StringHandle                     inputDriverName;
  58.     StringHandle                     outputDriverName;
  59.     StringHandle                     name;
  60.     CRMIconHandle                     deviceIcon;
  61.     long                             ratedSpeed;
  62.     long                             maxSpeed;
  63.     long                             reserved;
  64. };
  65. typedef struct CRMSerialRecord CRMSerialRecord;
  66.  
  67. typedef CRMSerialRecord *CRMSerialPtr;
  68.  
  69. #if PRAGMA_ALIGN_SUPPORTED
  70. #pragma options align=reset
  71. #endif
  72.  
  73. #if PRAGMA_IMPORT_SUPPORTED
  74. #pragma import off
  75. #endif
  76.  
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80.  
  81. #endif /* __CRMSERIALDEVICES__ */
  82.  
  83.